import {MusicurlList} from '@/api/api.js'
const state ={
  //获取音乐url
  musicurllist:[]
};
const mutations ={
//获取音乐url
MUSICURLLIST(state,musicurllist){
  state.musicurllist = musicurllist
}
};
const actions ={
//获取音乐url
 async getMusicurlList({commit},{id}){
  let request = await MusicurlList(id)
  console.log(request);
  if(request.data.code==200){
    commit('MUSICURLLIST',request.data.data)
  }
  }
};
const getter={

};
export default{
  state,
  mutations,
  actions,
  getter
}